feat(v0.2.1): Admission/QoS spec finalization and API stabilization#36
Merged
feat(v0.2.1): Admission/QoS spec finalization and API stabilization#36
Conversation
- Add comprehensive TDD tests for Admission Control and QoS Policy (18 tests) - Export PyAdmissionConfig and PyAdmissionController in Python bindings - Add missing QosTaskMeta getters (memory_request, burst_ratio, bandwidth_request) - Add used_memory/used_bandwidth aliases to AdmissionStats - Add RejectReason enum for comparison (InsufficientMemory, InsufficientBandwidth) - Add AdmissionDecision.Admitted() and .Queued() static constructors - Create unified error handling module (errors.rs) with consistent exception mapping - Add stress test script (5min test: 112M+ ops at 357K ops/sec) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This was referenced Dec 12, 2025
- Sort imports in stress_test.py - Replace bare `except` with `except Exception` - Remove unused variable assignments (use `_` prefix) - Remove f-string without placeholders 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
New Files
rust/pygpukit-python/src/errors.rs- Unified error handling with helper functionstests/test_rust_admission_qos.py- 18 TDD tests for Admission/QoS spectests/stress_test.py- Multi-threaded stress test scriptModified Files
rust/pygpukit-python/src/lib.rs- Export new classesrust/pygpukit-python/src/scheduler.rs- Add PyAdmissionConfig, PyAdmissionController, QosTaskMeta gettersrust/pygpukit-python/src/memory.rs- Use unified error handlingrust/pygpukit-python/src/transfer.rs- Use unified error handlingTest plan
🤖 Generated with Claude Code